package interfaceAA;

import javax.swing.JPanel;
import java.awt.BorderLayout;
import javax.swing.JButton;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class MobiFunction extends JPanel {
	
	/**
	 * Windows button
	 */
	public JButton btnSpace;
	public JButton btnabc;
	public JButton btndef;
	public JButton btnghi;
	public JButton btnjkl;
	public JButton btnmno;
	public JButton btnpqrs;
	public JButton btntuv;
	public JButton btnwxyz;
	public JButton btnStar;
	public JButton btnClear;
	public JButton btnUp;
	public JButton btnDown ;
	public JButton btnPrev ;
	public JButton btnNext ;
	public JButton btnSelect;
	
	
	
	/**
	 * Create the panel.
	 */
	public MobiFunction() {
		
		setLayout(new BorderLayout(0, 10));
		
		JPanel panel = new JPanel();
		add(panel, BorderLayout.NORTH);
		panel.setLayout(new BorderLayout(10, 10));
		
		JButton btnOk = new JButton("OK");
		panel.add(btnOk, BorderLayout.WEST);
		
		btnClear = new JButton("Clear");
		panel.add(btnClear, BorderLayout.EAST);
		
		JPanel panel_2 = new JPanel();
		panel.add(panel_2, BorderLayout.CENTER);
		panel_2.setLayout(new BorderLayout(10, 10));
		
		btnUp = new JButton("^");
		panel_2.add(btnUp, BorderLayout.NORTH);
		
		btnDown = new JButton("v");
		panel_2.add(btnDown, BorderLayout.SOUTH);
		
		btnPrev = new JButton("<");
		
		panel_2.add(btnPrev, BorderLayout.WEST);
		
		btnNext = new JButton(">");
		panel_2.add(btnNext, BorderLayout.EAST);
		
		btnSelect = new JButton("Select");
		panel_2.add(btnSelect, BorderLayout.CENTER);
		
		JPanel panel_1 = new JPanel();
		add(panel_1, BorderLayout.CENTER);
		panel_1.setLayout(new GridLayout(4, 3, 10, 10));
		
		JButton button = new JButton("1");
		panel_1.add(button);
		
	    btnabc = new JButton("<html><center>2<br/>abc</center></html>");
		panel_1.add(btnabc);
		
		btndef = new JButton("<html><center>3<br/>def</center></html>");
		panel_1.add(btndef);
		
		btnghi = new JButton("<html><center>4<br/>ghi</center></html>");
		panel_1.add(btnghi);
		
		btnjkl = new JButton("<html><center>5<br/>jkl</center></html>");
		panel_1.add(btnjkl);
		
		btnmno = new JButton("<html><center>6<br/>mno</center></html>");
		panel_1.add(btnmno);
		
		btnpqrs = new JButton("<html><center>7<br/>pqrs</center></html>");
		panel_1.add(btnpqrs);
		
		btntuv = new JButton("<html><center>8<br/>tuv</center></html>");
		panel_1.add(btntuv);
		
		btnwxyz = new JButton("<html><center>9<br/>wxyz</center></html>");
		panel_1.add(btnwxyz);
		
		btnStar = new JButton("*");
		panel_1.add(btnStar);
		
		btnSpace = new JButton("0");
		panel_1.add(btnSpace);
		
		JButton btnNewButton_8 = new JButton("#");
		panel_1.add(btnNewButton_8);

	}
}
